import request from './request.js'

export function postMall(e){
	return request.post("/addShopcart",{
		pid: e.pid,
		count: e.count,
		rule: e.typeText,
	})
}

export function getAllCart(e){
	return request.get("/findAllShopcart")
}

export function getAllCartCount(e){
	return request.get("/shopcartCount")
}

export function postRefreshCount(sid,count){
	return request.post("/modifyShopcartCount",{
		sid: sid,
		count: count,
	})
}

export function postDelShopMall(sids){
	return request.post("/deleteShopcart",{
		sids: sids
	})
}